if Katello.with_remote_execution?
  User.as_anonymous_admin do
    JobTemplate.without_auditing do
      module_template = JobTemplate.find_by(name: 'Module Action - SSH Default')
      if module_template
        module_template.sync_feature('katello_module_stream_action')
        module_template.organizations << Organization.unscoped.all if module_template.organizations.empty?
        module_template.locations << Location.unscoped.all if module_template.locations.empty?
      end
    end
  end
end
